<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%weather_type}}".
 *
 * @property integer $id
 * @property string $name
 * @property integer $pid
 * @property string $description
 * @property string $bottom
 * @property string $top
 * @property integer $status
 * @property string $last_update
 */
class WeatherType extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%weather_type}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name'], 'required'],
            [['pid', 'status'], 'integer'],
            [['description'], 'string'],
            [['bottom', 'top'], 'number'],
            [['last_update'], 'safe'],
            [['name'], 'string', 'max' => 32]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'pid' => 'Pid',
            'description' => 'Description',
            'bottom' => 'Bottom',
            'top' => 'Top',
            'status' => 'Status',
            'last_update' => 'Last Update',
        ];
    }
}
